Skip to content

Conversation

tekkamanendless
Copy link

One of the benefits of using gorestful is its fancy routes, which
let you specify "path parameters" such as "/users/{id}". This
change adds a "Config" structure for the gorestful middleware that
allows you to use the gorestful route path and not the actual
request path.

For backward compatibility, this introduces the "HandlerWithConfig"
function, and the existing "Handler" function calls "HandlerWithConfig"
with the default "Config".

The example has been updated to use "HandlerWithConfig".

One of the benefits of using gorestful is its fancy routes, which
let you specify "path parameters" such as "/users/{id}".  This
change adds a "Config" structure for the gorestful middleware that
allows you to use the gorestful route path and not the actual
request path.

For backward compatibility, this introduces the "HandlerWithConfig"
function, and the existing "Handler" function calls "HandlerWithConfig"
with the default "Config".

The example has been updated to use "HandlerWithConfig".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant